<ion-view view-title="news">
    <script type="text/javascript">
        jeDate({
            dateCell:"#dateinfo",
            format:"YYYY年MM月DD日 hh:mm:ss",
            isinitVal:true,
            isTime:true, //isClear:false,
            minDate:"2014-09-19 00:00:00",
            okfun:function(val){alert(val)}
        })
    </script>
    <ion-header-bar class="bar-positive">
        <div class="buttons">
            <button class="button button-icon icon ion-arrow-left-c" ui-sref="tab.work">
            </button>
        </div>
        <h2 class="title">我的请假</h2>

    </ion-header-bar>

  <ion-content>

      <div class="card" >
          <div class="item item-text-wrap item-input item-select">
              <label class="input-label" >请假类型 </label>
              <select >
                  <option selected="">请选择</option>
                  <option >事假</option>
                  <option >病假</option>
                  <option>调休</option>
              </select>
          </div>

          <div class="item item-text-wrap">
              <label class="item item-input ">
                  <span class="input-label">开始时间</span>
                  <p class="datep"><input class="datainp" id="datebut" type="text" ng-model="info.starttime"
                    placeholder="双击选择时间"   onClick="jeDate({dateCell:'#datebut',isTime:true,format:'YYYY-MM-DD hh:mm:ss'})"></p>
              </label>
          </div>
          <div class="item item-text-wrap">
              <label class="item item-input ">
                  <span class="input-label">结束时间</span>
                  <p class="datep"><input class="datainp" id="dateinfo" type="text" ng-model="info.endtime"
                    placeholder="双击选择时间" onClick="jeDate({dateCell:'#dateinfo',isTime:true,format:'YYYY-MM-DD hh:mm:ss'})"></p>
              </label>
          </div>
          <div class="item item-text-wrap">
              <label class="item item-input ">
                  <span class="input-label">请假天数</span>
                  <input type="text" placeholder="请输入请假天数（必填）" ng-model="info.day">
              </label>
          </div>
          <div class="item item-text-wrap">
              <label class="item item-input ">
                  <span class="input-label">请假事由</span>
                  <input type="text" placeholder="请输入请假事由（必填）" ng-model="info.reson">
              </label>
          </div>

          <div class="item item-text-wrap item-input item-select">
          <label class="input-label">审批人 </label>
          <select >
              <option selected="">请选择</option>
              <option >张三</option>
              <option >王五</option>
              <option>李四</option>
          </select>


      </div>

      </div>
      <div class="padding">
          <button class="button button-block button-positive" ng-click="postLeave(info)">提交</button>
      </div>
  </ion-content>
</ion-view>
